﻿using System.Runtime.Serialization;

namespace WEIShareWCFRole.BusinessEntities
{
    /// <summary>
    /// The Default Web Service Response
    /// </summary>
    [DataContract]
    public class Response
    {
        [DataMember]
        public int StatusCode = 100;
        [DataMember]
        public string StatusMessage = "";
    }

    /// <summary>
    /// The Web Service Response that also returns Data
    /// </summary>
    /// <typeparam name="T">Data Type of the Data Returned</typeparam>
    [DataContract]
    public class Response<T> : Response
    {
        [DataMember]
        public T Data;
    }
}